package com.wh.org.dao;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wh.org.pojo.Department;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import java.util.List;

@Mapper //也可以在启动类扫描mapper包
//@Repository
public interface IDepartmentDao extends BaseMapper<Department> {
    List<Department> findByPage(@Param("page") IPage<Department> page, @Param("ew") QueryWrapper<Department> qw);

    void deletefroId(Long id);
    //增 删 改 查 根据id查  分页查 批量删
//
//    void add(Department department);
//    void del(Long id);
//    void upd(Long id);
//    List<Department> findAll();
//    Department findById(Long id);

//    void patchDel(Long[] ids);
}
